package method_replacement;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.FXNewsProvider;

/**
 * @author wx-li
 * @company 希睿科技(www.xraitech.com)
 * @copyright (c) 2018 希睿科技( www.xraitech.com )Inc. All rights reserved.
 * @date 2020/10/16 19:06
 * @since JDK1.8
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("method/method_replacement.xml");
        FXNewsProvider djNewsProvider = (FXNewsProvider) context.getBean("djNewsProvider");
        djNewsProvider.getAndPersistNews("HelloWorld");
    }
}
